package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;
import com.ym.medical.domain.entity.HospitalDeptEntity;
import com.ym.common.annotations.CustomConstraint;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * 【请填写功能名称】对象 hospital_dept
 *
 * @author ym
 * @date 2020-08-20
 */
@ApiModel("【请填写功能名称】-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HospitalDeptUpdateParam extends BeanCovert<HospitalDeptEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("医院主键")
    private Long hospitalId;

    @ApiModelProperty("科室编码")
    @Size(max = 32, message = "科室编码长度超过{max}", groups = {Add.class, Update.class})
    private String deptCode;

    @ApiModelProperty("医院编码")
    @Size(max = 20, message = "医院编码长度超过{max}", groups = {Add.class, Update.class})
    private String hosCodeUni;

    @ApiModelProperty("标准科室编码")
    @Size(max = 20, message = "标准科室编码长度超过{max}", groups = {Add.class, Update.class})
    private String stdeptCodeUni;

    @ApiModelProperty("科室名称")
    @Size(max = 128, message = "科室名称长度超过{max}", groups = {Add.class, Update.class})
    private String deptName;

    @ApiModelProperty("科室类型")
    @Size(max = 10, message = "科室类型长度超过{max}", groups = {Add.class, Update.class})
    private String deptType;

    @ApiModelProperty("科室图标")
    @Size(max = 255, message = "科室图标长度超过{max}", groups = {Add.class, Update.class})
    private String deptImgUrl;

    @ApiModelProperty("科室图标")
    @Size(max = 5000, message = "科室图标长度超过{max}", groups = {Add.class, Update.class})
    private String theDesc;

    @ApiModelProperty("科室排序")
    private Integer deptSort;

    @ApiModelProperty("住院部地址")
    @Size(max = 200, message = "住院部地址长度超过{max}", groups = {Add.class, Update.class})
    private String inAddr;

    @ApiModelProperty("门诊地址")
    @Size(max = 200, message = "门诊地址长度超过{max}", groups = {Add.class, Update.class})
    private String doorAddr;

    @ApiModelProperty("联系电话")
    @Size(max = 64, message = "联系电话长度超过{max}", groups = {Add.class, Update.class})
    private String linkPhone;

    @ApiModelProperty("是否显示")
    @Size(max = 2, message = "是否显示长度超过{max}", groups = {Add.class, Update.class})
    private String isShow;

    @ApiModelProperty("父级科室编码")
    @Size(max = 20, message = "父级科室编码长度超过{max}", groups = {Add.class, Update.class})
    private String parentDeptCode;

    @ApiModelProperty("父级科室id")
    private Long partentDeptId;

    @ApiModelProperty("标准科室id")
    private Long standardDeptId;

    @ApiModelProperty("状态")
    @Size(max = 2, message = "状态长度超过{max}", groups = {Add.class, Update.class})
    private String state;

    @ApiModelProperty("创建时间")
    @NotNull(message = "创建时间不能为空", groups = Add.class)
    private Date createTime;

    @ApiModelProperty("修改时间")
    @NotNull(message = "修改时间不能为空", groups = {Add.class, Update.class})
    private Date updateTime;

    @ApiModelProperty("创建人")
    private Long creSb;

    @ApiModelProperty("修改人")
    private Long uptSb;

    @ApiModelProperty("发布时间")
    private Date publishTime;

    @ApiModelProperty("发布人")
    private Long publisher;

    @ApiModelProperty("发布状态")
    @Size(max = 2, message = "发布状态长度超过{max}", groups = {Add.class, Update.class})
    private String publishStatus;

}
